<?php

defined('_JEXEC') or die();

jimport('joomla.application.component.view');

class Easiv2adminViewManageInstances extends JView {
	
	function display($tpl = null) {
		
		$this->addToolbar();
		
		/**
		 * get data from model and assign to view
		 */
		$this->data = $this->get('InstanceInfo');
		$this->pagination = $this->get('Pagination');
		
		parent::display($tpl);
	}
	
	function addToolbar() {
		JToolbarHelper::title(JText::_('Manage Joomla! Instances'), 'checkin.png');
		JToolbarHelper::addNew('manageInstances.gotoAddExistingInstance', 'Add J! Instance');
		JToolbarHelper::editListX('manageInstances.gotoEditInstances', 'Edit selected');
		//JToolbarHelper::cancel('manageInstances.deleteInstances', 'Delete selcted', true);
		JToolBarHelper::custom('manageInstances.deleteInstances', 'cancel', 'cancel', 'Delete selected', true);
		JToolbarHelper::divider();
		JToolBarHelper::custom('manageInstances.gotoExtensions', 'back', 'back', 'Extension Management', false);
	}
}